<template>
    <div class="list">
        <div class="item" v-for="(item, i) in listData" :key="i">
            <span class="icon">
                <!-- <svg :fill="item.iconColor"><use :xlink:href="item.icon"></use></svg> -->
            </span>
            <div class="info">{{ item.info }}</div>
        </div>
    </div>
</template>

<script>
export default {
    name: 'ListView',
    props:{
      listData: {
        type: Array,
        default() {
            return []    
        }
      }
    }
}
</script>

<style>
  .list {
    margin: 0 7px;
    background-color: #fff;
    font-size: 13px;
    color: #333;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;

    display: flex;
    flex-flow: row wrap;
    align-content: flex-start;
  }
  .list .item {
    box-sizing: border-box;
    padding: 8px 10px;
    flex: 0 0 33%;
    line-height: 35px;
  }
  .icon svg {
    width: 18px;
    height: 18px;
  }
  .item .icon {
    margin-top: 10px;
    position: absolute;
    left: 16px;
    top: -7px;
  }
  .item .info {
    border-bottom: 1px solid rgba(100, 100, 100, .1);
  }
  .item:last-of-type .info {
    border-bottom: none;
  } 
</style>